<?php
include_once(PATH_APP_COMMON . "AuthManager.php");
class Controller_AdminIndex extends Controller {
	
	function __construct()
	{	

		parent::__construct();
	}

	function actionIndex()
	{
		$AdminMenu = new Model_MenuBackend();
		$menu['titles'] = $AdminMenu->generateTitles();
		$menu['nav']  = $AdminMenu->generateNav();
		$menu['guides']  = $AdminMenu->generateSubMenu();
		$this->assign("json_titles",json_encode($menu['titles']));
		$this->assign("json_guides",json_encode($menu['guides']));	
		$this->assign("nav",$menu['nav']);
		$this->assign("user",UAC::getUserInfo());
		$this->display();
	}

	function actionMain()
	{
		$this->display();
	}
}
